#pragma once
#include "UIControl.h"
#include "ximage.h"

class CUIRadio :
	public CUIControl
{
public:
	CUIRadio(void);
	~CUIRadio(void);

	virtual void Render(CDC *pDC);
	virtual BOOL OnLButtonDown(UINT nFlags, CPoint point);

public:
	void Create(CString szImageFile, CRect rcBound, CUIControl *pParent);
	void SetText(CString sText) {m_sText = sText;};
	void SetTextColor(COLORREF crText) {m_crText = crText;};
	int GetSelect() {return m_bSelect;};
	void SetSelect(BOOL bSelect) {m_bSelect = bSelect;};
	void SetImage(const char *szImageFile);
	CxImage& GetImage() {return m_imgRadio;};
protected:
	BOOL m_bSelect;
	CString m_sText;
	COLORREF m_crText;
	CxImage m_imgRadio;
};
